"use strict";(self.webpackChunkpromptmanager=self.webpackChunkpromptmanager||[]).push([[7480],{6608:function(A,B,E){E.d(B,{Z:function(){return s}});var g=E(1413),C=E(45987),Q=E(29439),o=E(27135),h=E(71502),e=E(57697),w=E(26577),I=E(72791),F=E(24518),c=E(80184),n=["node"],i=["node"],G=["node"],D=["node"],U=["node"],Y=["node"],d=["node"];function r(A){var B=(0,I.useState)({}),E=(0,Q.Z)(B,2),g=E[0],C=E[1],o=(0,I.useState)(!1),h=(0,Q.Z)(o,2),n=h[0],i=h[1];try{var G=JSON.parse(A.children[0]);return(0,c.jsx)(e.Z,{schema:G,formData:g,validator:w.Z,onChange:function(A){C(A.formData)},submitBtn:(0,c.jsx)(F.Z,{variant:"contained",onClick:function(){i(!0),A.onFormSubmit(g)},disabled:n,children:"Submit"})})}catch(D){console.log(D)}return(0,c.jsx)("div",{children:"Unable to render form"})}function s(A){return(0,c.jsx)(o.D,(0,g.Z)((0,g.Z)({},A),{},{remarkPlugins:[h.Z],components:{img:function(A){A.node;var B=(0,C.Z)(A,n),E=B.alt,o=B.src,h=E.split("|"),e=(0,Q.Z)(h,2),w=e[0],I=e[1],F={};try{F=JSON.parse(I)}catch(i){}return o.startsWith("data:audio/")||"Audio"===w?(0,c.jsx)("audio",{controls:!0,style:(0,g.Z)((0,g.Z)({},{display:"block"}),F),src:o,autoPlay:!0,children:" "}):o.endsWith(".mp4")||o.endsWith(".webm")||o.endsWith(".ogg")?(0,c.jsx)("video",{controls:!0,style:(0,g.Z)((0,g.Z)({},{display:"block",maxWidth:"100%",boxShadow:"0px 0px 10px 1px #7d7d7d"}),F),src:o,children:"Unable to load video"}):(0,c.jsx)("img",{src:o||"",alt:w,style:(0,g.Z)((0,g.Z)({},{display:"block",maxWidth:"100%",boxShadow:"0px 0px 10px 1px #7d7d7d"}),F)})},a:function(A){A.node;var B=(0,C.Z)(A,i);return(0,c.jsx)("a",(0,g.Z)((0,g.Z)({},B),{},{target:"_blank",rel:"noreferrer nofollow",children:B.children}))},table:function(A){A.node;var B=(0,C.Z)(A,G);return(0,c.jsx)("table",(0,g.Z)((0,g.Z)({style:{borderCollapse:"collapse",border:"1px solid #ccc"}},B),{},{children:B.children}))},tr:function(A){A.node;var B=(0,C.Z)(A,D);return(0,c.jsx)("tr",(0,g.Z)((0,g.Z)({},B),{},{style:{border:"1px solid #ccc"},children:B.children}))},th:function(A){A.node;var B=(0,C.Z)(A,U);return(0,c.jsx)("th",(0,g.Z)((0,g.Z)({},B),{},{style:{border:"1px solid #ccc"},children:B.children}))},td:function(A){A.node;var B=(0,C.Z)(A,Y);return(0,c.jsx)("td",(0,g.Z)((0,g.Z)({},B),{},{style:{border:"1px solid #ccc"},children:B.children}))},code:function(B){B.node;var E=(0,C.Z)(B,d);return"language-function_form"===E.className?(0,c.jsx)(r,(0,g.Z)({onFormSubmit:A.onFormSubmit},E)):(0,c.jsx)("code",(0,g.Z)((0,g.Z)({},E),{},{children:E.children}))}},children:A.children||""}))}},85292:function(A,B,E){E.r(B),E.d(B,{default:function(){return Q}});var g=E(52909),C=E(80184);function Q(){return(0,C.jsx)("div",{id:"history-page",children:(0,C.jsx)(g.p,{showFilterBar:!0})})}}}]);
//# sourceMappingURL=7480.3e53a8cb.chunk.js.map